import request from '@/utils/request'

// 查询网点任务列表
export function listZswsTask(query) {
  return request({
    url: '/service/zswsTask/list',
    method: 'get',
    params: query
  })
}

// 查询网点任务详细
export function getZswsTask(id) {
  return request({
    url: '/service/zswsTask/' + id,
    method: 'get'
  })
}

// 新增网点任务
export function addZswsTask(data) {
  return request({
    url: '/service/zswsTask',
    method: 'post',
    data: data
  })
}

// 修改网点任务
export function updateZswsTask(data) {
  return request({
    url: '/service/zswsTask',
    method: 'put',
    data: data
  })
}

// 删除网点任务
export function delZswsTask(id) {
  return request({
    url: '/service/zswsTask/' + id,
    method: 'delete'
  })
}
